gdkdisplay: Remove a pointless assignment
authorDaniel Boles <dboles@src.gnome.org>
Sun, 6 Aug 2017 00:11:34 +0000 (01:11 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sun, 6 Aug 2017 00:13:51 +0000 (01:13 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=784016

gdk/gdkdisplay.c

index cf61a63367955c6b6f393d837cc6c093b5530894..09b95eaeff816c7f1c9f6f98882c1df602de6275 100644 (file)
@@ -2053,9 +2053,7 @@ gdk_error_trap_pop_internal (gboolean need_code)
   result = 0;
   for (l = trap->displays; l != NULL; l = l->next)
     {
-      gint code = 0;
-
-      code = class->pop_error_trap (l->data, !need_code);
+      gint code = class->pop_error_trap (l->data, !need_code);
 
       /* we use the error on the last display listed, why not. */
       if (code != 0)